package com.board.form;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class SeatEatTimeListForm {
    @NotNull(message = "id不能为空")
    @Min(value = 1, message = "id必须大于等于1")
    private Integer id;
    @NotNull(message = "storeId不能为空")
    @Min(value = 1, message = "storeId必须大于等于1")
    private Integer storeId;
    @NotBlank(message = "startTime不能为空")
    @Pattern(regexp = "\\d{4}-\\d{2}-\\d{2}[T]\\d{2}:\\d{2}:\\d{2}", message = "startTime格式应为'yyyy-MM-ddTHH:mm:ss'")
    private String startTime;
    @NotBlank(message = "endTime不能为空")
    @Pattern(regexp = "\\d{4}-\\d{2}-\\d{2}[T]\\d{2}:\\d{2}:\\d{2}", message = "endTime格式应为'yyyy-MM-ddTHH:mm:ss'")
    private String endTime;
    @NotNull(message = "pageNum不能为空")
    private Integer pageNum;
    @NotNull(message = "pageSize不能为空")
    private Integer pageSize;
}
